package com.marquis.cloud.fallBack;

import com.marquis.cloud.client.PersonClient;
import com.marquis.cloud.entity.Person;
import org.springframework.stereotype.Component;

@Component
public class PersonClientFallBack implements PersonClient {


    @Override
    public Person findById(int id) {
        Person person = new Person();
        person.setId(0);
        person.setName("失败");
        person.setMessage("FallBack");
        return person;
    }
}
